package cn.maxhou.dao.impl;

import cn.maxhou.dao.PetDao;
import cn.maxhou.entity.Pet;
import org.springframework.stereotype.Repository;

@Repository
public class PetDaoMySQLImpl implements PetDao {

    @Override
    public int insert(Pet pet) {
        //此处模拟插入数据,简化操作仅为说明问题
        System.out.println("将宠物"+pet.getName()+"插入到MySQL数据库中");
        return 1;
    }
}
